package com.platform.dao;


import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.platform.dto.User;
import com.platform.dto.UserRole;
import com.platform.exception.BizException;
import com.platform.base.mvc.IBaseMapper;

/**
 * @ClassName:  UserRoleDAO   
 * @Description:用户角色表
 * @author: 吴元森 
 * @date:   2019年12月24日 下午3:56:50   
 *   
 * @param <T>  
 * @Copyright: 2019 吴元森.
 */
@Mapper
public interface UserRoleDAO<T> extends IBaseMapper<T> {
	public Integer deleteUserCode(Long usercode) throws BizException;
    public Integer insertRoleUser(List<UserRole> userRole) throws BizException;
	public Integer deleteByJsId(Long jsid);
	
	public Integer deleteUserRoleByUserCodeAndRoleCode(Map<String,Object> map);
	
	public List<User> selectUserByRoleCode(Long rolecode);
	public List<User> selectUserNotHavaRoleByRoleCode(Map<String,Object> map);//Long rolecode,Long deptCode
	
	public String selectDataScopeIdent(Long userCode);
}
